package com.ss.android.article.browser.view.multiselect.viewholder.color;

import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.View;

import com.ss.android.article.browser.view.multiselect.e;

import org.jetbrains.annotations.NotNull;

public final class b extends com.ss.android.article.browser.view.multiselect.viewholder.b {
    final int a;
    @NotNull
    private final ValueHolder d;

    public b(@NotNull final View view, @NotNull ViewHolder viewHolder, @NotNull com.ss.android.article.browser.view.multiselect.a adapter) {
        super(view, viewHolder, adapter);
        this.a = 0;
        this.d =new ValueHolder<View>() {
            @Override
            public View getValue() {
                return view;
            }
        };
    }

    @NotNull
    private View a() {
        return (View) this.d.getValue();
    }

    public final void a(int arg3) {
        if (arg3 == e.a()) {
            this.a().setBackgroundColor(0);
        } else if (arg3 == e.b()) {
            this.a().setBackgroundColor(-3355444);
        }
    }
}

